<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript">
        window.onload=function()
        {
            //1.数组的合并
            const arr1=[1,2,3,4,5];
            const arr2=[6,7,8,9,10];

            //const arr1_2=arr1.concat(arr2);
            const arr1_2=[...arr1,...arr2];
            console.log(arr1_2);

            //2.数组的克隆
            const arr3=["a","b","c","d","e"];
            //const arr4=arr3;
            const arr4=[...arr3];
            console.log(arr4);

            //3.将伪数组转为真正的数组
            const divs=document.getElementsByTagName("div");
            console.log(divs);
            const divArr=[...divs];
            console.log(divArr);
        };
    </script>
</head>
<body>
    <div></div>
    <div></div>
    <div></div>
</body>
</html>